package com.wyiot.pet.model.vo;

import com.wyiot.core.enums.PetTypeEnum;
import com.wyiot.core.enums.TransportationEnum;
import com.wyiot.core.enums.WaybillStatusEnum;
import com.wyiot.pet.model.entity.WayBillMessageDO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 运单物流信息详情显示
 *
 * @author yly
 * @since 2022年04月11日
 */
@Data
public class WaybillDetailVO {
    /*运单号*/
    private String wayBillNumber;
    /*运单状态*/
    private WaybillStatusEnum wayBillState;
    /*运输类型*/
    private TransportationEnum transportationType;
    /*宠物类型*/
    private PetTypeEnum petType;
    /*寄件地址经度*/
    private Double beginLongitude;
    /*寄件地址纬度*/
    private Double beginLatitude;
    /*收件地址经度*/
    private Double finalLongitude;
    /*收件地址纬度*/
    private Double finalLatitude;
    /*当前地址经度*/
    private Double nowLongitude;
    /*当前地址纬度*/
    private Double nowLatitude;
    /*当前温度*/
    private Double boxTemp;
    /*运单消息*/
    private List<WayBillMessageDO> waybillMessage;
    /*预计到达时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date expectedDeliveryTime;

}
